<%@page import="com.eam.bean.Asset"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>query_user</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
    <form action="query.action" method="post">
    	<table>
    		<tr>
    			<td>资产名称</td>
    			<td>资产数量</td>
    			<td>资产单价</td>
    			<td>资产状态</td>
    			<td>资产详情</td>
    			<td>所属部门</td>
    		</tr>
    		<%
    			List<Asset> assetList=(List<Asset>)session.getAttribute("assetList");
    			for(Asset asset:assetList){
    			
    		 %>
    		<tr>
    			<td><input type="text" name="a" value="<%=asset.getName() %>"></td> 
    			<td><input type="text" name="b" value="<%=asset.getNum() %>"></td> 
    			<td><input type="text" name="c" value="<%=asset.getValue() %>"></td> 
    			<td><input type="text" name="d" value="<%=asset.getStatus()%>"></td> 
    			<td><input type="text" name="e" value="<%=asset.getSpec()%>"></td> 
    			<td><input type="text" name="f" value="<%=asset.getDepartmentId()%>"></td> 
    		</tr>
    		<%
    			}
    		 %>
    	</table>
	</form>
  </body>
</html>
